package com.stream;

import java.io.File;
import java.io.FilenameFilter;
import java.util.Arrays;

/**
 * 自定义异常
 *
 * @author weijingchen
 * @DateTime 2025-06-16
 */
public class MyRuntimeException {
    public static void main(String[] args) {
        File file = new File("D:\\BaiduNetdiskDownload");
        System.out.println(file);
        File[] files = file.listFiles((dir, name) -> new File(dir, name).isFile() && name.endsWith(".txt"));
        System.out.println(Arrays.toString(files));
    }
}
